package com.cskaoyan.market.service;

import com.cskaoyan.market.bo.MarketGoodsUpdateBo;
import com.cskaoyan.market.db.domain.MarketGoods;
import com.cskaoyan.market.db.domain.MarketGoodsAttribute;
import com.cskaoyan.market.db.domain.MarketGoodsProduct;
import com.cskaoyan.market.db.domain.MarketGoodsSpecification;

import java.util.List;
import java.util.Map;

public interface AdminGoodsService {


    List<MarketGoods> list(String page, String limit, String sort, String order, String id, String goodsSn, String name);



    MarketGoods getMarketgood(int goodId);

    Integer delete(MarketGoods marketGoods);

    List<MarketGoodsAttribute> getMarketgoodAttributes(int goodId);

    List<MarketGoodsProduct> getProducts(int goodId);

    List<MarketGoodsSpecification> getSpecification(int goodId);

    Map<String, Object> catAndBrand();

    int[] getCategoryIds(String id);


    int update(MarketGoods goods, List<MarketGoodsAttribute> attributes, List<MarketGoodsProduct> products, List<MarketGoodsSpecification> specifications);

    void create(MarketGoods goods, List<MarketGoodsSpecification> specifications, List<MarketGoodsAttribute> attributes, List<MarketGoodsProduct> products);
}
